<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Micromenu: src/Texto.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Localizar');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Ficheiros</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Localizar" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;ficheiros</span></a></li>
    </ul>
  </div>
<h1>src/Texto.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include &lt;SDL/SDL.h&gt;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#include &lt;SDL/SDL_ttf.h&gt;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="preprocessor">#ifndef _TEXTO_H_</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define _TEXTO_H_</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span>
<a name="l00009"></a>00009 <span class="keyword">using namespace </span>std;
<a name="l00010"></a>00010 
<a name="l00023"></a><a class="code" href="class_texto.html">00023</a> <span class="keyword">class </span><a class="code" href="class_texto.html" title="Classe de Texto.">Texto</a>
<a name="l00024"></a>00024 {
<a name="l00025"></a>00025     <span class="keyword">private</span>:
<a name="l00027"></a>00027         SDL_Rect mRect;
<a name="l00029"></a>00029         TTF_Font* mpFonte;
<a name="l00031"></a>00031         Uint16 mLarguraFonte;
<a name="l00033"></a>00033         Uint16 mAlturaFonte;
<a name="l00035"></a>00035         Uint16 mTamanhoFonte;
<a name="l00037"></a>00037         <span class="keywordtype">string</span> mTexto;
<a name="l00039"></a>00039         vector&lt;string&gt; mPalavras;
<a name="l00041"></a>00041         SDL_Surface* mpDestino;
<a name="l00049"></a>00049         <span class="keywordtype">void</span> blitaTexto(<span class="keywordtype">string</span> texto, Uint16 x, Uint16 y, Uint8 r, Uint8 g, Uint8 b);
<a name="l00051"></a>00051         <span class="keywordtype">void</span> carregaString();
<a name="l00053"></a>00053         <span class="keyword">static</span> Uint8 initTTF;
<a name="l00054"></a>00054 
<a name="l00055"></a>00055     <span class="keyword">public</span>:
<a name="l00057"></a>00057         <a class="code" href="class_texto.html#adb8ed911c0010361142803bc6f97c0db" title="Construtor padrão.">Texto</a>();
<a name="l00059"></a>00059         <a class="code" href="class_texto.html#a9e00ad1ee43a4eb82bb3700ab8829dad" title="Destrutor padrão.">~Texto</a>();
<a name="l00065"></a>00065         SDL_bool <a class="code" href="class_texto.html#a4baf3f3cc3031af30aa02aa59e9a6936" title="Inicializa as variáveis.">inicializa</a>(Uint16 larguraRect, <span class="keywordtype">string</span> fonte,
<a name="l00066"></a>00066                         Uint16 tamanhoFonte);
<a name="l00074"></a>00074         <span class="keywordtype">void</span> <a class="code" href="class_texto.html#aa1a4bfa6cbfdc40036ff8ad21a5be34c" title="Exibe o texto na tela.">exibe</a>(Uint16 x, Uint16 y, SDL_Surface* destino, Uint8 r, Uint8 g, Uint8 b);
<a name="l00077"></a>00077         <span class="keywordtype">void</span> <a class="code" href="class_texto.html#a2b4db160fd4c84910460421ff817efe1" title="escreve o texto por parâmetro">escreve</a>(<span class="keywordtype">string</span> texto);
<a name="l00078"></a>00078  };
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 <span class="preprocessor">#endif</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span>
<a name="l00082"></a>00082 
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Tudo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Variáveis</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Gerado em Tue Jul 6 15:36:09 2010 para Micromenu por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
